package com.amkai.aes.webservice.binary.objecthandler;

import java.io.Serializable;

import com.amkai.aes.aescommon.service.binary.job.BatchCalculatorJob;
import com.amkai.aes.aescommon.service.result.billing.BatchCalculatorResult;
import com.amkai.aes.server.billing.ledger.BatchCalculatorManager;
import com.amkai.aes.webservice.binary.JobObjectHandler;

public class BatchCalculatorHandler implements JobObjectHandler<BatchCalculatorJob, Serializable, BatchCalculatorResult>{
	
	@Override
	public BatchCalculatorResult process(BatchCalculatorJob job, Serializable object)
			throws Exception {
		return BatchCalculatorManager.calculate(null, job.getBatch(), job.getTransactionKind(), job.isWithBatchSave(),false);
	}	
}
